package com.by.mapper;

import com.by.common.dao.MyBaseMapper;
import com.by.entity.SpuExtension;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author ServivE
 * @version 0.1
 * @className SpuExtensionMapper
 * @description
 * @date 2024/11/11 16:41
 * @since jdk17
 */
@Mapper
public interface SpuExtensionMapper extends MyBaseMapper<SpuExtension> {
    /**
     * 更新库存
     * @return
     */
    int updateStock(@Param("spu_id") int spu_id, @Param("total") int total);
}
